package com.yq.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Author: yangQ
 * @Date: 2020/11/23 21:10
 * @Description:登陆的数据输出对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginBodyDto {
    //  用户名
    @NotBlank(message = "用户名不能为空")
    private String username;
    //  密码
    @NotBlank(message = "用户密码不能为空")
    private String password;
    // 验证码
    private String code;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
